package com.ecplatform.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

@ComponentScan(basePackages = {"com.ecplatform.gateway", "com.ecplatform.common","com.ecplatform.api"}) // 扫描包,能够找到其他包下的bean
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@Import({com.ecplatform.common.config.MVCConfig.class})
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }
}
